

import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

import javax.annotation.Resource;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.web.bind.annotation.RestController;
import com.bootdo.system.service.ProductService;

@RestController()
@RunWith(SpringRunner.class)
@SpringBootTest
public class RedisTest2 {
	
	@Autowired
	private ProductService productService;
	
	
	
	@Test 
	 public void test8aa(){
		Map<String, Object> map=new HashMap<String, Object>();
		map.put("userId", 3);
		List<Map<String, Object>> list = productService.list(map);
		System.out.println(list.size());
	 };
	 
	 
	 
}
